@echo off
echo ========================================
echo LimeReader - Build and Pack
echo ========================================
echo.

:: Step 1: Build
echo [Step 1/2] Building project...
call build.bat
if errorlevel 1 (
    echo [ERROR] Build failed!
    pause
    exit /b 1
)

echo.
echo [Step 2/2] Creating installer...
call create_installer_simple.bat
if errorlevel 1 (
    echo [ERROR] Installer creation failed!
    pause
    exit /b 1
)

echo.
echo ========================================
echo SUCCESS! All done!
echo ========================================
echo.
echo Build output: build\bin\Release\LimeReader.exe
if exist "installer\LimeReader_Setup_v2.7.2.exe" (
    echo Installer: installer\LimeReader_Setup_v2.7.2.exe
)
echo.
pause

